//
//  CPCollectionViewCell.swift
//  Bee
//
//  Created by kyson on 15/12/31.
//  Copyright © 2015年 kyson. All rights reserved.
//

import UIKit

class CPCollectionViewCell: UICollectionViewCell {
    
    static func loadFromXib()->CPCollectionViewCell {
        //        let className = _stdlib_getDemangledTypeName(self)
        let className = NSStringFromClass(self).componentsSeparatedByString(".").last
        
        let views = NSBundle.mainBundle().loadNibNamed(className, owner: nil, options: nil)
        return views.first as! CPCollectionViewCell;
    }
}
